package exam4;

/**
 * @author HB
 * @version 1.0
 * @description
 * @date 2021/6/18
 */

public class PrintSpooler {
    private static PrintSpooler instance=null;
    private PrintSpooler(){};
    public static PrintSpooler getInstance(){
        if(instance == null) {
            instance = new PrintSpooler();
        } else {
            new PrintSpoolerException();
        }

        return instance;
    }
    public void Suspension(){
        System.out.println("中止任务");
    }

    public void changeLevel(){
        System.out.println("改变优先级");
    }

    public void delete(){
        System.out.println("删除任务");
    }

}
